package com.example.a321.rxnetdemo;

import java.util.List;

/**
 * Created by zhangdongyang on 2016/9/7.
 * Email:dongyangzhang@foxmail.com
 */
public class PostEntity  {

    /**
     * policy_name : 测试策略123213
     * template_name : 测试模板
     * description : 描述车安徽省的卡上
     * contents : [{"effect":"allow","action":"*","resource":["learning:plan:tag:23","learning:exercise:id:128,31,11,1,1111,1231","learning:anwser:id:*","video:live:id:3","video:live:tag:free","video:video:id:*","download:docs:tag:free,reading","mall:order:id:3,2,21,344"],"condition":{"date_lte":1473180389000,"date_gte":1470180389000}}]
     */

    private String policy_name;
    private String template_name;
    private String description;
    /**
     * effect : allow
     * action : *
     * resource : ["learning:plan:tag:23","learning:exercise:id:128,31,11,1,1111,1231","learning:anwser:id:*","video:live:id:3","video:live:tag:free","video:video:id:*","download:docs:tag:free,reading","mall:order:id:3,2,21,344"]
     * condition : {"date_lte":1473180389000,"date_gte":1470180389000}
     */

    private List<ContentsBean> contents;

    public String getPolicy_name() {
        return policy_name;
    }

    public void setPolicy_name(String policy_name) {
        this.policy_name = policy_name;
    }

    public String getTemplate_name() {
        return template_name;
    }

    public void setTemplate_name(String template_name) {
        this.template_name = template_name;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public List<ContentsBean> getContents() {
        return contents;
    }

    public void setContents(List<ContentsBean> contents) {
        this.contents = contents;
    }

    public static class ContentsBean {
        private String effect;
        private String action;
        /**
         * date_lte : 1473180389000
         * date_gte : 1470180389000
         */

        private ConditionBean condition;
        private List<String> resource;

        public String getEffect() {
            return effect;
        }

        public void setEffect(String effect) {
            this.effect = effect;
        }

        public String getAction() {
            return action;
        }

        public void setAction(String action) {
            this.action = action;
        }

        public ConditionBean getCondition() {
            return condition;
        }

        public void setCondition(ConditionBean condition) {
            this.condition = condition;
        }

        public List<String> getResource() {
            return resource;
        }

        public void setResource(List<String> resource) {
            this.resource = resource;
        }

        public static class ConditionBean {
            private long date_lte;
            private long date_gte;

            public long getDate_lte() {
                return date_lte;
            }

            public void setDate_lte(long date_lte) {
                this.date_lte = date_lte;
            }

            public long getDate_gte() {
                return date_gte;
            }

            public void setDate_gte(long date_gte) {
                this.date_gte = date_gte;
            }
        }
    }
}
